package com.blensmile.adapter;

import android.content.Context;
import android.content.Intent;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import com.blensmile.R;
import com.blensmile.activity.MediaPlayerItemTestActivity;
import com.blensmile.entities.MediaTestBean;
import com.blensmile.view.PlayVoiceView;

import java.util.List;

/**
 * Created by Blensmile on 2017/1/11.
 */

public class ImageAdapter extends RecyclerView.Adapter<ImageAdapter.ImageHolder>{

    private List<String> mList;
    private Context context;

    public ImageAdapter(Context context,List<String> mDataset) {
        this.mList = mDataset;
        this.context = context;
    }

    @Override
    public ImageAdapter.ImageHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        View view = LayoutInflater.from(context).inflate(R.layout.item_imge,parent,false);
        return new ImageAdapter.ImageHolder(view);
    }

    @Override
    public void onBindViewHolder(ImageAdapter.ImageHolder holder, final int position) {

    }

    @Override
    public int getItemCount() {
        return mList.size();
    }

    public class ImageHolder extends RecyclerView.ViewHolder{
        private ImageView imgAvatar;

        public ImageHolder(View itemView) {
            super(itemView);
            imgAvatar = (ImageView)itemView.findViewById(R.id.img_avatar);
        }
    }
}